package com.example.dqreptile.utils;

import com.baidu.aip.ocr.AipOcr;

import org.springframework.beans.factory.annotation.Value;

public class BaiduAip extends  AipOcr{

    @Value("${baidu.appId}")
    private String app_Id;

    @Value("${baidu.apiKey}")
    private String apiKey;

    @Value("${baidu.secretKey}")
    private String secretKey;


    public BaiduAip(String appId, String apiKey, String secretKey) {
        super(appId, apiKey, secretKey);
    }

    public AipOcr BaiduAip(){
        return new AipOcr(this.appId,this.apiKey,this.secretKey);
    }

}
